package com.atguigu;

import java.util.Arrays;

public class dome {
    public static void main(String[] args) {
        int[] arr={5,6,1,3,0,4,7,9};
        int[] index={2,0,1,4,6,2,5,0,1,7,3};
        int a=0;
        for (int i=0;i<index.length;i++){
            a +=arr[1];
            System.out.println(a);
        }
        Arrays.stream(index).asLongStream().filter(item->item==0).forEach(System.out::println);
    }
}
